//
//  HMTestViewController.swift
//  Weibo
//
//  Created by 黄亦寒 on 16/9/20.
//  Copyright © 2016年 HM. All rights reserved.
//

import UIKit

class HMTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.white
        addNavRightButton()
        
    }

    private func addNavRightButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title:"push",target:self,action:#selector(pushAction))
    }
    
    //点击事件
    func pushAction() {
        let testVc = HMTestViewController()
        navigationController?.pushViewController(testVc, animated: true)
    }
    
    
}
